package com.piz.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="BANK_DETAILS")
public class BankDetails implements Serializable{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long id;
	private String bankName;
	private Date createdDate;
	private String description;
	private String type;
	private Boolean active;
	


	/**
	 *  Auto-generated constructor stub
	 */
	public BankDetails() {
		
		// Auto-generated constructor stub
	}

	
	
	/**
	 * @param bankName
	 * @param description
	 * @param type
	 */
	public BankDetails(String bankName, String description, String type, Boolean active) {
		
		this.bankName = bankName;
		this.description = description;
		this.type = type;
		this.active = active;
	}
	/**
	 * @return id
	 */
	
	@Id
    @GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ID")
	public Long getId() {
		return id;
	}
	/**
	 * @param id1 Sets the ID
	 */
	public void setId(Long id1) {
		id = id1;
	}
	
	
	/**
	 * @return Name
	 */
	@Column(name="BANK_NAME",unique=true,nullable=false)
	public String getBankName() {
		return bankName;
	}

	/**
	 * @param name Sets  Name
	 */
	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	/** 
	 * @return description
	 */
	@Column(name="DESCRIPTION")
	public String getDescription() {
		return description;
	}
	
	/**
	 * @param desc Sets description
	 */
	public void setDescription(String desc) {
		this.description = desc;
	}
	
	/** 
	 * @return date
	 */
	@Column(name = "ADDED_AT")
	public Date getCreatedDate() {
		return createdDate;
	}
	

	/**
	 * @param date Sets createdDate
	 */
	public void setCreatedDate(Date date) {
		createdDate = date;
	}

	/** 
	 * @return String
	 */
	@Column(name = "TYPE")
	public String getType() {
		return type;
	}


	/**
	 * @param String Sets type
	 */
	public void setType(String type) {
		this.type = type;
	}

	/** 
	 * @return Boolean
	 */
	@Column(name = "ACTIVE")
	public Boolean getActive() {
		return active;
	}


	/**
	 * @param boolean Sets active
	 */
	public void setActive(Boolean active) {
		this.active = active;
	}
	
	
	
	
}

